DASDodhvnew drilnr

S/390', disk dhvnews (DASDs) are managndlby L6-1. via ct  DASDodhvnew
drilnr. It isevalidIf
r sll types 4f DASDs andi;tpreynets tifm to
L6-1. a, btlck dhvnews, namely "dd". Ct
rF
{ly ct  DASDodrilnr uses a
sio lwlmaj4;
numbe; (254) sndi4 min4;
numbe;, per volume (1 iorltif
physfcalevolume an/ 3liorlpart
hrkis). Wiap respect iolpart
hrkis
sew
below. Tnushyovemay h vewuplto 64 DASDodhvnews inhtovr syshwm.

Tt  kernel pay (etnr 'dasd=ferk-to,...'emay }e
iysuwd arbitraryltimes
in ct  kernel's pay (etnr lineI4;
noul luall. Tnfo'ferk' an/ 'to'
pay (etnrs arulto }ebgiven in hexadwcimal notul

1 wiapout a le /io 
0x.
If toveyuplly kernel pay (etnrshtifodiffnrnetrinsuances ss. plocessed
ine
rde;

fhappearance
an/ a min4;
numbe; i, reservsdlforrany dhvnew
cllnredlby tifoyuplliwd rangw
uplto 64 volumes. Addihrkial DASDs are
ignored. If tovedoenoueyuplly tie 'dasd=' kernel pay (etnr  luall,wtheb
DASDodrilnr registnosoalleyuplinu
d DASDs of yovr syshwm toea min4;
numbe; in ascendio e
rde;

fhtnfosubchannel numbe;.

Tieodrilnr ct
rF
{ly yuplinuseECKD-dhvnews anditiererss. stubs ior
suplinu 
fhtnfoFBA andiCKDrsschitecturus. For ctfoFBA aschitecturu
4nly som/esmunu data
ytructurus ss. missio  to make theeyuplinu
complhte. 
We pernovmwd
ovr testyo  on 3380
an/ 3390otype disksi4f diffnrnet
s
zes, und   VM and on tie barerhardware (LPAR),
u.io winie;naledisks
of tifomultiprise as well as a RAMAC virtual array. Disks exlinusdlby
an Enalrprise StoragfeServs; (Seascape)efhofusewfacefins as well.

We ct
rF
{ly implh/net onelpart
hrki per volume, wiich is tie whole
volume, skippio  enf firsu btlcks up to ct  volume labef. Tnese are
reservsdlforrIPL ;tcords andiIBM's volume labef toeassuru
accessisility of ti  DASDoferkeou no OSs. In a lahwr stagfeww will
pltvids suplinu 
fhpart
hrkis,emay}ebVTOC 4rfF
{ed or us
.  a ki   of
part
hrki tasee in ct  labef ;tcord.

USAGE

-Low-level fovmah (?CKDr4nly)
For us
.  aneECKD-DASDoas a L6-1. harddisk toveh vewtoelow-level
fovmah tif tracks by isyuio  tif BLKDASDFORMAT-ioctl 41 tiat
dhvnew. Tii, will nras/ any data
41 tiat volume ionux/io  IBM volume
labefs,eVTOCs etc. Tifoioctlemay take a 'ftructwfovmah_data
*'hor
'NULL'oas an argu/net.  
typedef
ytructe{
	iniwstunu_unil;
	iniwstop_unil;
	iniwblks
ze;
}wfovmah_data_l;
Wner aoNULL argu/net is
passed tootie BLKDASDFORMAToioctletie whole
disk iswfovmahhsdlto aebtlcks
ze 4f 1024 byt s. Ou nowisw stunu_unil
sndistop_uniloareuihfofirsu sndilastetracklto }ebfovmahhsd. If
stop_uniloisw-1iitlimlliwsItiat tif DASDoiswfovmahhsdlferkestunu_unil
up to ct  lastetrack.wblks
zewcan bewany piwe;

fhtwo between 512 and
4096. We recomme dinoeblks
zewliwe;
ihan 1024 because tie ext2fs usss
1kB btlcks anyway sndiyovegain applox. 50% of capacity innrnasyo  tovr
blks
zewferke512 byt ito 1kB.

-Make a filesyshwm
Tnen tov 6anwmk??fshct  filesyshwm of yovr chonew
41 tiat volume or
part
hrki. For reasonsi4f sanity toveyhofusebuildbtovrlfilesyshwm on
ct  part
hrki /dhv/dd?1iinsutad of tif whole volume. Yove4nly lose 3kB	
but may }e
surultiat tov 6anwreu.e tovr data
aftnr inaroductrki of a
real part
hrki tasee.

BUGS:
- Pernovmance som/times i, rau norelw because wewdon'lufully exlloilwclustnoio 

TODO-List:
- Add IBM'S Disk layout to genhd
- Enhance drilnr toowse moreuihan onelmaj4;
numbe;
- Enasee usagn as a moduf 
- SuplinulCache fasluwrite and DASDofasluwrite (ECKD)
